// JavaScript Document
function setScore(obj){  

    var val = obj.value;
	var score;  
	
    if(val == '雅思A（IELTS）'||val == '雅思G（IELTS）'){ 
	   
        var listen = document.getElementById('listening');
		  listen.options.length=0;
		for(var i=0,score=0;i<19;i++,score=score+0.5) 
		    listen.options[i] = new Option(score,score);
       
		var speak = document.getElementById('speaking');
		speak.options.length=0;  
         for(var i=0,score=0;i<19;i++,score=score+0.5) 
		    speak.options[i] = new Option(score,score);
		var read = document.getElementById('reading'); 
		read.options.length=0;
        for(var i=0,score=0;i<19;i++,score=score+0.5) 
		    read.options[i] = new Option(score,score);  
		var write = document.getElementById('writing');
		write.options.length=0;  
        for(var i=0,score=0;i<19;i++,score=score+0.5) 
		    write.options[i] = new Option(score,score);  
    }

	 if(val == '职业英语考试（OET）'){  
        var listen = document.getElementById('listening'); 
		listen.options.length=0; 
        listen.options[0] = new Option("A","A");  
        listen.options[1] = new Option("B","B");
		listen.options[2] = new Option("C","C");
		listen.options[3] = new Option("D","D");
		listen.options[4] = new Option("E","E");
		var speak = document.getElementById('speaking'); 
		speak.options.length=0;  //清空列表
         speak.options[0] = new Option("A","A");  
        speak.options[1] = new Option("B","B");
		speak.options[2] = new Option("C","C");
		speak.options[3] = new Option("D","D");
		speak.options[4] = new Option("E","E"); 
	    var read = document.getElementById('reading'); 
		read.options.length=0;  
         read.options[0] = new Option("A","A");  
        read.options[1] = new Option("B","B");
		read.options[2] = new Option("C","C");
		read.options[3] = new Option("D","D");
		read.options[4] = new Option("E","E");
		var write = document.getElementById('writing'); 
		write.options.length=0;  
        write.options[0] = new Option("A","A");  
        write.options[1] = new Option("B","B");
		write.options[2] = new Option("C","C");
		write.options[3] = new Option("D","D");
		write.options[4] = new Option("E","E");
    }  
	if(val == '托福（TOEFL）'){  
       var listen = document.getElementById('listening');
		  listen.options.length=0;
		for(var i=0,score=0;i<=30;i++,score++) 
		    listen.options[i] = new Option(score,score);
       
		var speak = document.getElementById('speaking');
		speak.options.length=0;  
         for(var i=0,score=0;i<=30;i++,score++) 
		    speak.options[i] = new Option(score,score);
		var read = document.getElementById('reading'); 
		read.options.length=0;
        for(var i=0,score=0;i<=30;i++,score++) 
		    read.options[i] = new Option(score,score);  
		var write = document.getElementById('writing');
		write.options.length=0;  
        for(var i=0,score=0;i<=30;i++,score++) 
		    write.options[i] = new Option(score,score);
    }   
	if(val == '学术英语考试（PTE）'){  
        var listen = document.getElementById('listening');
		  listen.options.length=0;
		for(var i=0,score=0;i<=90;i++,score++) 
		    listen.options[i] = new Option(score,score);
       
		var speak = document.getElementById('speaking');
		speak.options.length=0;  
         for(var i=0,score=0;i<=90;i++,score++) 
		    speak.options[i] = new Option(score,score);
		var read = document.getElementById('reading'); 
		read.options.length=0;
        for(var i=0,score=0;i<=90;i++,score++) 
		    read.options[i] = new Option(score,score);  
		var write = document.getElementById('writing');
		write.options.length=0;  
        for(var i=0,score=0;i<=90;i++,score++) 
		    write.options[i] = new Option(score,score);
    }   
	if(val == '剑轿英语等级证书考试（CAE）'){  
       var listen = document.getElementById('listening'); 
		listen.options.length=0; 
        listen.options[0] = new Option("<185","<185");  
        listen.options[1] = new Option(">=185,<200",">=185,<200");
		listen.options[2] = new Option(">200",">200");
		
		var speak = document.getElementById('speaking'); 
		speak.options.length=0;  //清空列表
         speak.options[0] = new Option("<185","<185");  
        speak.options[1] = new Option(">=185,<200",">=185,<200");
		speak.options[2] = new Option(">200",">200");
		
	    var read = document.getElementById('reading'); 
		read.options.length=0;  
         read.options[0] = new Option("<185","<185");  
        read.options[1] = new Option(">=185,<200",">=185,<200");
		read.options[2] = new Option(">200",">200");
		
		var write = document.getElementById('writing'); 
		write.options.length=0;  
        write.options[0] = new Option("<185","<185");  
        write.options[1] = new Option(">=185,<200",">=185,<200");
		write.options[2] = new Option(">200",">200");
		
    }   
} 
function setScore2(obj){  

    var val = obj.value;

	
    if(val == '雅思A（IELTS）'||val == '雅思G（IELTS）'){ 
	   
        var listen = document.getElementById('listening2');
		  listen.options.length=0;
		for(var i=0,score=0;i<19;i++,score=score+0.5) 
		    listen.options[i] = new Option(score,score);
       
		var speak = document.getElementById('speaking2');
		speak.options.length=0;  
         for(var i=0,score=0;i<19;i++,score=score+0.5) 
		    speak.options[i] = new Option(score,score);
		var read = document.getElementById('reading2'); 
		read.options.length=0;
        for(var i=0,score=0;i<19;i++,score=score+0.5) 
		    read.options[i] = new Option(score,score);  
		var write = document.getElementById('writing2');
		write.options.length=0;  
        for(var i=0,score=0;i<19;i++,score=score+0.5) 
		    write.options[i] = new Option(score,score);  
    }

	 if(val == '职业英语考试（OET）'){  
        var listen = document.getElementById('listening2'); 
		listen.options.length=0; 
        listen.options[0] = new Option("A","A");  
        listen.options[1] = new Option("B","B");
		listen.options[2] = new Option("C","C");
		listen.options[3] = new Option("D","D");
		listen.options[4] = new Option("E","E");
		var speak = document.getElementById('speaking2'); 
		speak.options.length=0;  //清空列表
         speak.options[0] = new Option("A","A");  
        speak.options[1] = new Option("B","B");
		speak.options[2] = new Option("C","C");
		speak.options[3] = new Option("D","D");
		speak.options[4] = new Option("E","E"); 
	    var read = document.getElementById('reading2'); 
		read.options.length=0;  
         read.options[0] = new Option("A","A");  
        read.options[1] = new Option("B","B");
		read.options[2] = new Option("C","C");
		read.options[3] = new Option("D","D");
		read.options[4] = new Option("E","E");
		var write = document.getElementById('writing2'); 
		write.options.length=0;  
        write.options[0] = new Option("A","A");  
        write.options[1] = new Option("B","B");
		write.options[2] = new Option("C","C");
		write.options[3] = new Option("D","D");
		write.options[4] = new Option("E","E");
    }  
	if(val == '托福（TOEFL）'){  
       var listen = document.getElementById('listening2');
		  listen.options.length=0;
		for(var i=0,score=0;i<=30;i++,score++) 
		    listen.options[i] = new Option(score,score);
       
		var speak = document.getElementById('speaking2');
		speak.options.length=0;  
         for(var i=0,score=0;i<=30;i++,score++) 
		    speak.options[i] = new Option(score,score);
		var read = document.getElementById('reading2'); 
		read.options.length=0;
        for(var i=0,score=0;i<=30;i++,score++) 
		    read.options[i] = new Option(score,score);  
		var write = document.getElementById('writing2');
		write.options.length=0;  
        for(var i=0,score=0;i<=30;i++,score++) 
		    write.options[i] = new Option(score,score);
    }   
	if(val == '学术英语考试（PTE）'){  
        var listen = document.getElementById('listening2');
		  listen.options.length=0;
		for(var i=0,score=0;i<=90;i++,score++) 
		    listen.options[i] = new Option(score,score);
       
		var speak = document.getElementById('speaking2');
		speak.options.length=0;  
         for(var i=0,score=0;i<=90;i++,score++) 
		    speak.options[i] = new Option(score,score);
		var read = document.getElementById('reading2'); 
		read.options.length=0;
        for(var i=0,score=0;i<=90;i++,score++) 
		    read.options[i] = new Option(score,score);  
		var write = document.getElementById('writing2');
		write.options.length=0;  
        for(var i=0,score=0;i<=90;i++,score++) 
		    write.options[i] = new Option(score,score);
    }   
	if(val == '剑轿英语等级证书考试（CAE）'){  
       var listen = document.getElementById('listening2'); 
		listen.options.length=0; 
        listen.options[0] = new Option("<185","<185");  
        listen.options[1] = new Option(">=185,<200",">=185,<200");
		listen.options[2] = new Option(">200",">200");
		
		var speak = document.getElementById('speaking2'); 
		speak.options.length=0;  //清空列表
         speak.options[0] = new Option("<185","<185");  
        speak.options[1] = new Option(">=185,<200",">=185,<200");
		speak.options[2] = new Option(">200",">200");
		
	    var read = document.getElementById('reading2'); 
		read.options.length=0;  
         read.options[0] = new Option("<185","<185");  
        read.options[1] = new Option(">=185,<200",">=185,<200");
		read.options[2] = new Option(">200",">200");
		
		var write = document.getElementById('writing2'); 
		write.options.length=0;  
        write.options[0] = new Option("<185","<185");  
        write.options[1] = new Option(">=185,<200",">=185,<200");
		write.options[2] = new Option(">200",">200");
		
    }   
} 